package cn.alibab.cangku.service.impl;


import cn.alibab.cangku.dao.AddressDao;
import cn.alibab.cangku.service.AddressService;
import cn.alibab.cangku.vo.AddressVo;
import cn.alibab.common.model.R;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {
    private final AddressDao addressDao;

    public AddressServiceImpl(AddressDao addressDao) {
        this.addressDao = addressDao;
    }

    @Override
    public R finaAllAddress() {
        List<AddressVo> allAddress = addressDao.finaAllAddress();
        return R.ok(allAddress);
    }
}
